package com.ciaojian.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ciaojian.core.model.HaloDetail;
import com.ciaojian.core.model.vo.HaloDetailVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * halo 支付详情 Mapper 接口
 * </p>
 *
 * @author Atlakyn
 * @since 2021-06-01
 */
public interface HaloDetailMapper extends BaseMapper<HaloDetail> {
    /**
     * 查找未删除的 halo 详情
     *
     * @param titleId 标题 ID
     * @return Halo 详情列表
     */
    @Select("SELECT * FROM d_halo_detail WHERE del = FALSE AND title_id = #{titleId}  ORDER BY sort")
    List<HaloDetailVO> findAll(@Param("titleId") Integer titleId);

}
